export default {
  methods: {
    isShowButton(code) {
      //   console.log(
      //     'this.$store.state.user.userInfo.roles.points',
      //     this.$store.state.user.userInfo.roles.points,
      //     code
      //   )
      return (
        this.$store.state.user.userInfo.roles &&
        this.$store.state.user.userInfo.roles.points.includes(code)
      )
    }
  }
}
